{% extends "../templates/index.html" %}
{% block concent %}
<head>
    <meta charset="UTF-8">
    <title>{% if object %}修改任务 {% else %} 添加任务 {% endif %}</title>
</head>
<body>
<h3>{% if object %}修改任务 {% else %} 添加任务 {% endif %}</h3>
    <form action="" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        {{ form.as_p }}
        <p><input type="submit" class="btn btn-success" value="保存"></p>
    </form>
</body>
{% endblock %}